import tensorflow as tf

print("tensorflow的版本号：", tf.__version__)

A = tf.constant([[1, 2], [3, 4]])
B = tf.constant([[5, 6], [7, 8]])
C = tf.multiply(A, B)
print(C)

with tf.compat.v1.Session() as sess:
    a = tf.constant(3.0)
    b = tf.constant(4.0)
    c = a * b
    print('Hello TensorFlow!', sess.run(c))
    sess.close()
